import request from '@/utils/request';

// 工单统计接口
export const getUserWork = (data) =>
  request.get('/api/task-service/task/userWork', { params: data });

// 订单总数
export const getOrderCount = (data) =>
  request.get('/api/order-service/report/orderCount', { params: data });

// 销售总数
export const getOrderAmount = (data) =>
  request.get('/api/order-service/report/orderAmount', { params: data });

// 销售额分布
export const getRegionCollect = (data) =>
  request.get(
    `/api/order-service/report/regionCollect/${data.start}/${data.end}`
  );

// 销售额趋势
export const getAmountCollect = (data) =>
  request.get(
    `/api/order-service/report/amountCollect/${data.collectType}/${data.start}/${data.end}`
  );

// 获取前十的商品
export const getskuTop = (data) =>
  request.get(
    `/api/order-service/report/skuTop/${data.topValue}/${data.start}/${data.end}`
  );

// 合作商点位数
export const getNodeCollet = () =>
  request.get('/api/vm-service/node/nodeCollect');
